find_package(Gettext)

if (GETTEXT_FOUND)

    GETTEXT_PROCESS_PO_FILES(cs    ALL INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX}/share/locale LANGUAGES cs/codelite.po)
    GETTEXT_PROCESS_PO_FILES(ja_JP ALL INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX}/share/locale LANGUAGES ja_JP/codelite.po)
    GETTEXT_PROCESS_PO_FILES(ru_RU ALL INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX}/share/locale LANGUAGES ru_RU/codelite.po)
    GETTEXT_PROCESS_PO_FILES(zh_CN ALL INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX}/share/locale LANGUAGES zh_CN/codelite.po)

else()
    MESSAGE(WARNING "gettext not found")
endif()
